package models

import (

	"go-admin/common/models"

)

type Population struct {
    models.Model
    
    Name string `json:"name" gorm:"type:varchar(100);comment:姓名"` 
    Age string `json:"age" gorm:"type:int;comment:年龄"` 
    Gender string `json:"gender" gorm:"type:enum('Male','Female','Other');comment:性别"` 
    Occupation string `json:"occupation" gorm:"type:varchar(100);comment:职业"` 
    Address string `json:"address" gorm:"type:varchar(255);comment:地址"` 
    City string `json:"city" gorm:"type:varchar(50);comment:城市"` 
    Country string `json:"country" gorm:"type:varchar(50);comment:国家"` 
    Nationality string `json:"nationality" gorm:"type:varchar(50);comment:国籍"` 
    MaritalStatus string `json:"maritalStatus" gorm:"type:enum('Single','Married','Divorced','Widowed');comment:婚姻状况"` 
    EducationLevel string `json:"educationLevel" gorm:"type:varchar(50);comment:教育水平"` 
    Income string `json:"income" gorm:"type:decimal(10,2);comment:收入"` 
    FamilySize string `json:"familySize" gorm:"type:int;comment:家庭规模"` 
    models.ModelTime
    models.ControlBy
}

func (Population) TableName() string {
    return "population"
}

func (e *Population) Generate() models.ActiveRecord {
	o := *e
	return &o
}

func (e *Population) GetId() interface{} {
	return e.Id
}